﻿<%@ Page Language="C#" MasterPageFile="~/shop.Master" AutoEventWireup="true" CodeBehind="register.aspx.cs" Inherits="WebApplication6.register" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<form id="form1" runat="server" >
<table width="100%" border="1">


<tr>
<td align="center" colspan="2"><span style="color:Red;font-size:20px;font-weight:bold;">用户注册</span></td>
</tr>


<tr>
<td align="right">用户名：</td>
<td align="center">
    <asp:TextBox runat="server" id="txtusername" size="30"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"  ControlToValidate="txtusername" ErrorMessage="不能为空"  Display="Dynamic"></asp:RequiredFieldValidator>    
</td>
</tr>

<tr>
<td align="right">密码：</td>
<td align="center">
    <asp:TextBox runat="server" id="password" size="30" TextMode="Password"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"  ControlToValidate="password" ErrorMessage="不能为空"  Display="Dynamic"></asp:RequiredFieldValidator>    
</td>
</tr>

<tr>
<td align="right">确认密码：</td>
<td align="center">
    <asp:TextBox runat="server" id="password2" size="30" TextMode="Password"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"  ControlToValidate="password2" ErrorMessage="不能为空"  Display="Dynamic"></asp:RequiredFieldValidator>    
    <asp:CompareValidator runat="server" ErrorMessage="确认密码必须和密码一致"  
        ID="RequiredFieldValidator33" ControlToCompare="password" 
        ControlToValidate="password2" Display="Dynamic"></asp:CompareValidator>
</td>
</tr>

<tr>
<td align="right">真实姓名：</td>
<td align="center">
    <asp:TextBox runat="server" id="truename" size="30"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"  ControlToValidate="truename" ErrorMessage="不能为空"  Display="Dynamic"></asp:RequiredFieldValidator>    
</td>
</tr>

<tr>
<td align="right">地址：</td>
<td align="center">
    <asp:TextBox runat="server" id="address" size="30"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"  ControlToValidate="address" ErrorMessage="不能为空"  Display="Dynamic"></asp:RequiredFieldValidator>    
</td>
</tr>

<tr>
<td align="right">手机：</td>
<td align="center">
    <asp:TextBox runat="server" id="phone" size="30"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"  ControlToValidate="phone" ErrorMessage="不能为空"  Display="Dynamic"></asp:RequiredFieldValidator>    
</td>
</tr>

<tr>
<td align="right">邮箱：</td>
<td align="center">
    <asp:TextBox runat="server" id="email" size="30"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"  ControlToValidate="email" ErrorMessage="不能为空"  Display="Dynamic"></asp:RequiredFieldValidator>    
</td>
</tr>

<tr>
<td align="right">QQ：</td>
<td align="center">
    <asp:TextBox runat="server" id="qq" size="30"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server"  ControlToValidate="qq" ErrorMessage="不能为空"  Display="Dynamic"></asp:RequiredFieldValidator>    
</td>
</tr>

<tr>
<td align="right">操作：</td>
<td align="center">
    
 <asp:Button ID="Button1" runat="server" Text="提交" style="width: 60px" 
                         onclick="Button1_Click" />
			
		<input  onclick="javascript:history.go(-1);" style="width: 60px" type="button" value="返回" />
</td>
</tr>



</table>
</form>
</asp:Content>
